package com.example.demo.common.response;

public class ServiceError extends RuntimeException{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1748549588628452054L;
	//put self-defined error code
	private String code;
	//exp.getMessage()
	private String desc;
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public ServiceError(String code, String desc){
		this.code=code;
		this.desc=desc;
	}

	
	@Override
	public String toString(){
		return "code:"+code+", desc:"+desc;
	}
}
